/*
 * @Description:
 * @Version: 2.0
 * @Autor: wsh
 * @Date: 2023-06-20 10:14:50
 * @LastEditors: uphldjx 1373577124@qq.com
 * @LastEditTime: 2024-06-19 13:38:20
 */
// 列表
const tableConfig = {
  stripe: true,
  border: true,
  maxHeight: '80vh',
  columns: [
    { label: '机构名称', prop: 'orgName' },
    { label: '申请金额', prop: 'amass' },
    { label: '实际核实金额', prop: 'grantAmount' },
    { label: '整改次数', prop: 'rectificationNum' },
    {
      label: '状态',
      prop: 'approvalStatus',
      custome: 'tag',
      dicData: [
        { label: '驳回', value: -1, style: { color: '#FA3E3E', background: '#FFC4B1' } },
        { label: '待提交', value: 1, style: { color: '#FF8800', background: '#FFF3E5' } },
        { label: '审批中', value: 2, style: { color: '#00A870', background: '#C8FFB1' } },
        { label: '审批通过', value: 3, style: { color: '#0052D9', background: '#D9E8FF' } },
        { label: '已录入发放凭证', value: 4, style: { color: '#7106C2', background: '#E9CBFF' } },
        { label: '已录入回执', value: 5, style: { color: '#7106C2', background: '#E9CBFF' } },
      ],
    },
    {
      label: '操作',
      prop: 'menu',
      width: 300,
      fixed: 'right',
    },
  ],
}

export const baseConfig = {
  pageName: '补贴',
  // 数据字典
  dictcodes: [],//逗号分隔字符串
  rowKey: 'id',//唯一标识
  addLabel: '新增',
  // 删除插入
  // tipLabel: '',//展示名称字段
  // exportMqTopic: '',//导出标识
  api: {
    index: 'view_ofsSubsidyApplyThirdParty_countDetails_page',
  },
  auth: {
    index: 'view_ofsSubsidyApplyThirdParty_countDetails_page',
    // 批量搜索
    // mulitSet: 'mulitSet',
  },
  // paramsObj: {},//默认传参
  // 当前行操作按钮
  menuBtn: [
    {
      icon: 'detail',
      label: '详情',
      type: 'primary',
      operate: 'Detial',
      auth: '',
      text: true,
      show: true,
    },
  ],
  dialogConfig: {
    width: '85%',
  },
  tableConfig,
}
